Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: ftom , Previous: format-with-slots , Up: F , Home: Overview

Clamps Dictionary

fr->ct

Function

(fr->ct fr)

Return the Midicents interval of the frequency ratio fr.

Arguments

fr Positive Number denoting the frequency ratio of the interval.

Examples

(fr->ct 2) ;; => 12.0

(fr->ct 4/5) ;; => -3.863137

(fr->ct 3/2) ;; => 7.01955

(fr->ct 1/2) ;; => -12.0

(mapcar #'fr->ct (range 1 17))
;; => (0.0 12.0 19.01955 24.0 27.863136 31.01955 33.68826 36.0 38.0391 39.863136
;;     41.51318 43.01955 44.405277 45.68826 46.882687 48.0)

See also

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate